package ApplicationLogic.modelSerialization;

import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;

import javax.xml.parsers.ParserConfigurationException;


import org.xml.sax.SAXException;

import businessLogic.model.AbstractModel;

public interface IModelSerializer {

	public abstract AbstractModel getFirstObjectFromXML(String XML)
			throws SAXException, IOException, ParserConfigurationException,
			InstantiationException, IllegalAccessException,
			ClassNotFoundException, ParseException;

	public abstract ArrayList<AbstractModel> getAllObjectsFromXML(String XML)
			throws SAXException, IOException, ParserConfigurationException,
			InstantiationException, IllegalAccessException,
			ClassNotFoundException, ParseException;

	public abstract String getXMLFromObjectList(List<AbstractModel> LModelos,
			int count) throws IllegalArgumentException, IllegalAccessException;

	public abstract String getXMLFromEmptyModel(String ModelName)
			throws Exception;

}